package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;

/**
 * @author almost
 */
public class PersonInfo {
    private String name;
    private String idCard;
    private String mobilePhone;
    private int color;
    private String colorName;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public PersonInfo() {
    }

    @SuppressWarnings("all")
    public String getName() {
        return this.name;
    }

    @SuppressWarnings("all")
    public String getIdCard() {
        return this.idCard;
    }

    @SuppressWarnings("all")
    public String getMobilePhone() {
        return this.mobilePhone;
    }

    @SuppressWarnings("all")
    public int getColor() {
        return this.color;
    }

    @SuppressWarnings("all")
    public String getColorName() {
        return this.colorName;
    }

    @SuppressWarnings("all")
    public void setName(final String name) {
        this.name = name;
    }

    @SuppressWarnings("all")
    public void setIdCard(final String idCard) {
        this.idCard = idCard;
    }

    @SuppressWarnings("all")
    public void setMobilePhone(final String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    @SuppressWarnings("all")
    public void setColor(final int color) {
        this.color = color;
    }

    @SuppressWarnings("all")
    public void setColorName(final String colorName) {
        this.colorName = colorName;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof PersonInfo)) return false;
        final PersonInfo other = (PersonInfo) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getColor() != other.getColor()) return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$idCard = this.getIdCard();
        final Object other$idCard = other.getIdCard();
        if (this$idCard == null ? other$idCard != null : !this$idCard.equals(other$idCard)) return false;
        final Object this$mobilePhone = this.getMobilePhone();
        final Object other$mobilePhone = other.getMobilePhone();
        if (this$mobilePhone == null ? other$mobilePhone != null : !this$mobilePhone.equals(other$mobilePhone)) return false;
        final Object this$colorName = this.getColorName();
        final Object other$colorName = other.getColorName();
        if (this$colorName == null ? other$colorName != null : !this$colorName.equals(other$colorName)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof PersonInfo;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getColor();
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final Object $idCard = this.getIdCard();
        result = result * PRIME + ($idCard == null ? 43 : $idCard.hashCode());
        final Object $mobilePhone = this.getMobilePhone();
        result = result * PRIME + ($mobilePhone == null ? 43 : $mobilePhone.hashCode());
        final Object $colorName = this.getColorName();
        result = result * PRIME + ($colorName == null ? 43 : $colorName.hashCode());
        return result;
    }
    //</editor-fold>
}
